package br.com.controleFrota;

import java.util.Timer;
import java.util.TimerTask;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;


public class Cronometro extends Service {
	private Timer timer = new Timer();
	
	
	public void onCreate() {
		super.onCreate();
		startservice();
	}
	
	
	private void startservice() {
		timer.scheduleAtFixedRate( new TimerTask() {
			public void run() {
				Log.d("TAG", "Service Rodando...");
			}
		}, 10000, 1000);
		; 
	}
	
	@Override
	public IBinder onBind(Intent arg0) {
		// TODO Auto-generated method stub
		return null;
	}
}
